﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using GuideBoard.DLL;
using System.Diagnostics;
using System.IO;

namespace GuideBoard
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void btnProxyOn_Click(object sender, EventArgs e)
        {
            Proxy.SetOn();
        }
        private void btnProxyOff_Click(object sender, EventArgs e)
        {
            Proxy.SetOff();
        }
        private void btnRegistOcx_Click(object sender, EventArgs e)
        {
            string msg = "";
            string RegistFilePath = "C:/WINDOWS/system32/";
            string RegistFile = "dsoframer.ocx";
            if (ConfigDSOFramer.Regsvr32(RegistFilePath, RegistFile,ref msg))
            {
                this.Text = msg;
            } 
            else
            {
                this.Text = msg;
            }
            
        }
        private void btnShellProgram_Click(object sender, EventArgs e)
        {
            Process.Start(Directory.GetCurrentDirectory() + @"\wfa001.exe");
            this.Dispose(true);
            this.Close();
        }

    }
}
